package com.nativetalk.dao;

import com.nativetalk.bean.TdNtCooperation;
import com.nativetalk.bean.TdNtCooperationMember;

/**
 * Created by wuyuanhui on 16/4/1.
 */
@MyBatisRepository
public interface TdNtCooperationDao {
    /**
     * @Purpose  判断合作商是否存在
     * @version  1.0
     * @author   wuyuanhui
     * @param    promo_code
     * @return   TdNtCooperation
     */
    public TdNtCooperation findCooperationCode(String promo_code);
    /**
     * @Purpose  更新合作商用户关联表
     * @version  1.0
     * @author   wuyuanhui
     * @param    tdNtCooperationMember
     * @return   void
     */
    public void updateTdNtCooperationMember(TdNtCooperationMember tdNtCooperationMember);
    /**
     * @Purpose  判断合作商用户关联表信息是否存在
     * @version  1.0
     * @author   wuyuanhui
     * @param    tdNtCooperationMember
     * @return   TdNtCooperationMember
     */
    public TdNtCooperationMember findTdNtCooperationMember(TdNtCooperationMember tdNtCooperationMember);
}
